package com.lottery.dao;




import com.lottery.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>User: Zhang Kaitao
 * <p>Date: 14-1-28
 * <p>Version: 1.0
 */
public interface RoleDao {

    public void createRole(Role role);

    public void updateRole(Role role);

    public void deleteRole(@Param("id")Long roleId);

    public Role findOne(@Param("id") String id);

    public Role findByDescription(String description);

    public List<Role> findAll();
}
